Special Screen OCR

Command Prototype

sText = OCR.ScreenSpecialOCR(objElement,objRect,sEngine,sAcessKey,sSecretKey,iTimeOut,sEngineOptionArgs,optionArgs)

Command Description

Use special OCR to recognize the text within a given window, treating the area as a specific type of document. Internet access is needed for this command

Parameter Description
Required Parameter
objElement--The UI element to search. If a string is passed, it is used as a feature string to search for the specified UIElement to click. If an UiElement is passed, the corresponding UI element is clicked
objRect--Area to recognize the specified string on. The program performs text recognition within the given area, formatted as { "x": 0, "y": 0, "width": 0, "height": 0}
sEngine--The OCR engine used
sAcessKey--API Key for the OCR service
sSecretKey--Secret key for the OCR service
iTimeOut--Maximum execution time (in milliseconds) of the activity. Throws a SelectorNotFoundException on timeout. Defaults to 10000
sEngineOptionArgs--Other parameters for OCR to pass along to the engine
Optional Parameter
bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values ​​(True, False). The default is False
iDelayAfter--Added delay (in milliseconds) after executing the activity. Defaults to 300
iDelayBefore--Whether to activate the target window before executing
bSetForeground--Whether to activate the target window before executing
return
sText--The variable to which the output of the function call is saved

results matching ""

    No results matching ""